public class TestDemo {

    public static void main1(String[] args) {
        Person ps = new Person();
        ps.setAge(18);
        ps.setName("cat.");
        System.out.println(ps);
    }
}

class Person {
    private String name;
    private int age;

    public Person() {
        System.out.println("Person<Init>");
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("Person<String, int>");
    }

    static {
        System.out.println("this is a static block");
    }

    {
        System.out.println(("this is a block"));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static void main1(String[] args) {
        Person ps1 = new Person();
        System.out.println("==========");
        Person ps2 = new Person();
    }






}
